<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: blue;
        }
        
        @media screen and (min-width: 540px) {
            html {
                font-size: 50px;
            }
        }
        
        @media screen and (min-width: 980px) {
            html {
                font-size: 100px;
                color: rgb(0, 183, 255);
            }
        }
        
        @media screen and (min-width: 1366px) {
            html {
                font-size: 150px;
                color: pink;
            }
        }
    </style>
</head>

<body>一起开心写编程
</body>

</html>